-- GENERATED SPELL FOR [Crystalweb Weaver] --


function spell0_29411(pUnit, Event) --@Crystal Chains,n/a--
pUnit:FullCastSpellOnTarget(47698,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29411', 6326, 1)
end

function Sorts_29411(pUnit, Event)
local choix_sorts_29411 = math.random(0, 0)
if choix_sorts_29411 == 0 then
pUnit:RegisterEvent('spell0_29411', 1, 1)
end
end

function mob29411_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29411', math.random(1500, 3000), 1)
end

function mob29411_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29411_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29411_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29411, 1, 'mob29411_Action')
RegisterUnitEvent(29411, 2, 'mob29411_Leave')
RegisterUnitEvent(29411, 3, 'mob29411_Kill')
RegisterUnitEvent(29411, 4, 'mob29411_Die')
